package com.zc.blog.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.zc.blog.model.Comment;

import java.util.List;

/**
 * 用户Mapper接口
 */
public interface CommentMapper extends BaseMapper<Comment> {

    Comment findById(Integer id);

    //根据文章id获取多有评论
    List<Comment> findCommentByArticleId(Integer articleId);
}
